package com.example.itas;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends Activity implements OnClickListener {

	Button login, join;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        login = (Button) findViewById(R.id.main_btn_login);
        join = (Button) findViewById(R.id.main_btn_join);
		login.setOnClickListener(this);
		join.setOnClickListener(this);
    }

	public void onClick(View v) {
		if (v.equals(login)) {
			Intent intent = new Intent(MainActivity.this, LoginActivity.class);
			startActivity(intent);
		} else if (v.equals(join)) {
	    	Intent intent = new Intent(MainActivity.this, JoinActivity.class);
	    	startActivity(intent);
		}
	}	
	
}
